package com.matt.service.courseV2;

import com.matt.commons.page.PagerQuery;
import com.matt.domain.courseV2.VendorCourse;
import com.matt.domain.courseV2.VendorCoursePackage;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface VendorCoursePackageService {

    VendorCoursePackage getOne(String id);


    VendorCoursePackage getVendorCoursePackage(String vendorId);

    VendorCoursePackage addVendorCoursePackage(String name, String desc, String contact, String logo, String cover);

    List<VendorCoursePackage> list(String areaId,int type,PagerQuery pagerQuery);

    Integer count(String areaId,int type);

    List<VendorCourse> courseList(String ticket);

    VendorCoursePackage add(VendorCoursePackage vendorCoursePackage);

    Page<VendorCoursePackage> list(String areaId,int type,String name ,String parentId ,PagerQuery pagerQuery);

    List<VendorCoursePackage> findByParentId(String parentId);

    List<VendorCoursePackage> findByParentIdOrId(String parentId);
}
